package main

import (
	"fmt"

	"gitee.com/RocsSun/webhook/pkg/serve/routers"
	"github.com/gin-gonic/gin"
)

func main() {
	gin.SetMode(gin.DebugMode)
	r := routers.SetDefaultRouter()
	err := r.SetTrustedProxies([]string{"127.0.0.1"})
	if err != nil {

		fmt.Println(err)
	}

	err = r.Run()
	if err != nil {
		fmt.Println(err)
	}
}
